<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="./lib/vue.js"></script>
</head>

<body>

  <div id="app">
    <div v-html="message">{{message}}</div>
    <div v-test="msg">{{msg}}</div>
  </div>
  <script>
    // var arr = [0,1,2,3,4,5]
    // var i = 0; var length = this.arr.length
    // while (i < length) {
    //   console.log(this.arr[i]);
    //   i++;
    // }

    // var arr = [1,2,3,4];

    // arr.forEach(alert);  

    new Vue({
      el: '#app',
      data: {
        message: "<h1>html标签,v-html</h1>",
        msg: "<h1>html标签,v-test</h1>"
      }
    })


  </script>
</body>

</html>